package cn.edu.gduf.luowowo.article.mapper;

import cn.edu.gduf.luowowo.article.domain.Travel;
import cn.edu.gduf.luowowo.article.query.TravelQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface TravelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Travel record);

    Travel selectByPrimaryKey(Long id);

    List<Travel> selectAll();

    int updateByPrimaryKey(Travel record);

    List<Travel> selectForList(TravelQuery qo);

    List<Travel> selectViewNumTop3(Long destId);

    void updateState(Travel travel);

    List<Long> selectByUserId(Long currentUserId);

    List<Travel> selectIdAndSubTitle();

    List<Travel> selectTravelByAuthorId(Long userInfoId);


    List<Travel> queryTravelByAuthorId(TravelQuery qo);

}